#!/bin/bash
#* Stop the compositor
killall picom

#* Set the nvidia settings to not do any sort of composition which will reduce latrency
s="$(nvidia-settings -q CurrentMetaMode -t)"
if [[ "${s}" != "" ]]; then
  s="${s#*" :: "}"
  nvidia-settings -a CurrentMetaMode="${s//\}/, ForceCompositionPipeline=Off\}}"
fi
